import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '查询'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    delivery: {
        url: '/delivery',
        title: formatMessage({
            id: 'routes.operation.delivery',
            defaultMessage: '发货'
        }),
        format: '/delivery'
    },
    posting: {
        url: '/posting',
        title: formatMessage({
            id: 'routes.operation.posting',
            defaultMessage: '发货过账'
        }),
        format: '/posting'
    }
});

export default routes;
